package commands;


import java.util.HashMap;

import controller.HandController;
import controller.handstates.AbstractState;

import model.Player;

public class FoldCommand extends Command {

	
	public FoldCommand(int seat){
		super(seat);
	}
	
	@Override
	protected boolean isCmdValid() {
		boolean valid = true;
		//this action is always valid.
		return valid;
	}

	@Override
	protected void executeImpl() {
		System.out.println("Player" + state.getHandChain().getActivePlayerSeat() + " folded.");
		state.getHandChain().remove(state.getHandChain().getActivePlayerSeat());		
	}
}
